package com.tools.ad.util;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;


/**
 * Created by Administrator on 2016/9/29.
 */
public class ShareUtils {

    /**
     * 是否安装fb
     * @return
     */
    public static boolean isInstallFaceBook(Context context) {
        boolean isInstall = false;
        PackageInfo packageInfo = null;
        try {
            packageInfo = context.getPackageManager().getPackageInfo("com.facebook.katana", 0);
        } catch (PackageManager.NameNotFoundException e) {
        }

        if (packageInfo != null) {
            isInstall = true;
        }
        return isInstall;
    }

}
